[HVM] Prevent usb driver crashes in Windows
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 6 Jun 2007 19:24:06 +0000 (20:24 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 6 Jun 2007 19:24:06 +0000 (20:24 +0100)
commit3590b5c3f4c56caad020ad4fb0220bf1fdb3bece
treed0cfecb0de437dc70a8b847f0962976cb9e032b6
parent957412e0eca07486983dd9866df3f2d47d4a0d58
[HVM] Prevent usb driver crashes in Windows

Use atomic updates to read/write usb controller data.
This can be done because:
    a) word copies on x86 are atomic
    b) The USB spec requires word alignment

This will need to be enhanced once USB 1.2 is supported.

Signed-off-by: Steve Ofsthun <sofsthun@virtualiron.com>
Update to copy 'longword'-sized atoms.

Signed-off-by: Keir Fraser <keir@xensource.com>
tools/ioemu/target-i386-dm/exec-dm.c